/*
 * @Author: cl
 * @Description: expor
 * @Date: 2023-05-28 11:05:58
 * @LastEditTime: 2023-08-22 09:04:44
 * @FilePath: \vue3scaffold\src\api\user.ts
 * @LastEditors: chenli chenli@kcwl.com
 */
import { myhttp } from "@/plugins/axios";
interface User {
  name: string;
  age: number;
}

class UserApi {
  async getInfo(){
    const result = await myhttp.myRequest<User>({
      url: "info",
    }) 
    return result ;
  } 
}
export default new UserApi();
